package com.qdu.service.impl;

import com.qdu.entity.Reportinfo;
import com.qdu.mapper.ReportinfoMapper;
import com.qdu.service.ReportService;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.stereotype.Service;
import org.springframework.transaction.annotation.Transactional;

import java.util.List;

@Service
@Transactional
public class ReportServiceImpl implements ReportService {

    @Autowired
    private ReportinfoMapper reportinfoMapper;

    @Override
    public void deleteByPrimaryKey(String rid) {
        reportinfoMapper.deleteByPrimaryKey(rid);
    }

    @Override
    public void insert(Reportinfo record) {
        reportinfoMapper.insert(record);
    }

    @Override
    public void insertSelective(Reportinfo record) {
        reportinfoMapper.insertSelective(record);
    }

    @Override
    public Reportinfo selectByPrimaryKey(String rid) {
        return reportinfoMapper.selectByPrimaryKey(rid);
    }

    @Override
    public List<Reportinfo> selectByUid(String uid) {
        return reportinfoMapper.selectByUid(uid);
    }

    @Override
    public Reportinfo selectByHid(String hid) {
        return reportinfoMapper.selectByHid(hid);
    }

    @Override
    public void updateByPrimaryKeySelective(Reportinfo record) {
        reportinfoMapper.updateByPrimaryKeySelective(record);
    }

    @Override
    public void updateByPrimaryKey(Reportinfo record) {
        reportinfoMapper.updateByPrimaryKey(record);
    }

    @Override
    public List<Reportinfo> getAll() {
        return reportinfoMapper.getAll();
    }

    @Override
    public Long findTotals() {
        return reportinfoMapper.findTotals();
    }
}
